package it.blueocean.acanto.taglibrary.jsp.taglib.tags.dataset;

public class PreviousPageNavigationTag extends DatasetNavigationTag
{
	private static final long serialVersionUID = 4871665904903773525L;

	protected int calculatePageNumber()
	{
		return (this.dataset_.getCurrentPage() - 1);
	}

	public String getId()
	{
		if(super.getId() != null)
			return super.getId();
		return this.datasetName_ + "_previousPage";
	}
}
